import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import Vant from 'vant'
import 'vant/lib/index.css'
import { Swipe, SwipeItem, Tabbar, TabbarItem, Search, Cell, Button, CellGroup, Field, Icon } from 'vant'
import axios from 'axios'
Vue.use(Cell)
Vue.use(CellGroup)
Vue.use(Search)
Vue.use(Tabbar)
Vue.use(Field)
Vue.use(TabbarItem)
Vue.use(Button)
Vue.use(Icon)
axios.defaults.baseURL = 'http://121.199.51.160:8080/'
Vue.use(Swipe)
Vue.use(SwipeItem)
Vue.prototype.$http = axios
// 把vant中所有的组件都导入了
// Vue.use(Vant)
Vue.config.productionTip = false
new Vue({
  router,
  render: (h) => h(App)
}).$mount('#app')
